package com.inspectortime.domain.billing;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.inspectortime.common.PersistentEntityBase;
import com.inspectortime.timestamp.Timestamped;

@Entity
@Table(name = "PAYMENT_LINE_ITEM")
public class PaymentLineItem extends PersistentEntityBase implements Timestamped {
	
	private Date createdTime;
	private Date lastModifiedTime;
	private String paymentSourceId;
	private Payment payment;
	
	public void setPayment(Payment payment) {
		this.payment = payment;
	}

	@ManyToOne(cascade = CascadeType.ALL )
	public Payment getPayment() {
		return payment;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public Date getLastModifiedTime() {
		return lastModifiedTime;
	}

	public String getPaymentSourceId() {
		return paymentSourceId;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public void setLastModifiedTime(Date lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}

	public void setPaymentSourceId(String paymentSourceId) {
		this.paymentSourceId = paymentSourceId;
	}
	
}
